package com.ruoyi.wxarea.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.wxarea.pojo.AddressUser;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 凡哥哥
 * @since 2024-05-06
 */
public interface AddressUserMapper extends BaseMapper<AddressUser> {
    @Update("update address_user set address = #{address},detail = #{detail} where wx_id = #{wxId}")
    void updateByWxId(AddressUser addressUser);
    @Select("SELECT * from address_user where id = #{defaultAddress}")
    AddressUser QueryById(Integer defaultAddress);
}
